package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 书籍对象 tb_book
 * 
 * @author ruoyi
 * @date 2020-03-06
 */
public class TbBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 书籍名称 */
    @Excel(name = "书籍名称")
    private String name;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** 图片 */
    @Excel(name = "图片")
    private String url;

    /** 简介 */
    @Excel(name = "简介")
    private String introduce;

    /** 上架状态（0-下架，1-下架） */
    @Excel(name = "上架状态", readConverterExp = "0=-下架，1-下架")
    private Integer status;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer total;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setTotal(Integer total)
    {
        this.total = total;
    }

    public Integer getTotal()
    {
        return total;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("price", getPrice())
                .append("url", getUrl())
                .append("introduce", getIntroduce())
                .append("createTime", getCreateTime())
                .append("status", getStatus())
                .append("total", getTotal())
                .toString();
    }

}
